import xadmin
from UShop.models import BuyCar, TbPrder


class buycarAdmin(object):
    list_display = ['car_userid', 'car_goods', 'car_gnum', 'is_select']
    search_fields =['car_userid', 'car_goods', 'car_gnum', 'is_select']
    list_filter = ['car_userid', 'car_goods', 'car_gnum', 'is_select']

class prderAdmin(object):
    list_display = ['order_id', 'user', 'order_time', 'oder_status', 'opay_status',]
    search_fields = ['order_id', 'user', 'order_time', 'oder_status', 'opay_status',]
    list_filter = ['order_id', 'user', 'order_time', 'oder_status', 'opay_status',]


xadmin.site.register(BuyCar, buycarAdmin)
xadmin.site.register(TbPrder, prderAdmin)
